﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace PlanetenGravity
{
    public class Asteroid : Sprite
    {
        public Asteroid(
            Texture2D texture,
            float mass,
            Vector2 position,
            Vector2 speed)
        {
            OnCollision += new CollisionEvent(CollisionResponse);

            Texture = texture;
            Radius = Texture.Width / 2;
            Mass = mass;
            Origin = new Vector2(Radius, Texture.Height / 2);
            Position = position;
            Speed = speed;
        }

        void CollisionResponse(object sender, EventArgs e)
        {
            
        }
    }
}